﻿<?php
 
error_reporting(0);
include "../comm/conn.php";
include "../comm/config.php";
include "check.php";

$id=$_GET["id"];
$link = mysql_connect($dbserver,$dbuser,$dbpass);
if (!$link) {
die("数据库链接出错: ".mysql_error());
}
else
{
mysql_query("set names utf8");
$sql="select * from ".$BIAOTOU."taobaoset where id=1";
mysql_select_db($dbname);
$rs = mysql_query($sql);
while ($row = mysql_fetch_array($rs))
{
$usernick=$row["usernick"];

$appKey=$row["appKey"];
$appSecret=$row["appSecret"];

$appKey2=$row["appKey2"];
$appSecret2=$row["appSecret2"];

$appKey3=$row["appKey3"];
$appSecret3=$row["appSecret3"];

$appKey4=$row["appKey4"];
$appSecret4=$row["appSecret4"];

$appKey5=$row["appKey5"];
$appSecret5=$row["appSecret5"];

$userpid=$row["userpid"];

}
}
;echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
mysql_close($link);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>管理中心</title> 
<link href="css/style.css" rel="stylesheet" type="text/css"> 
<style type="text/css"> 
<!--
table,tr,td { font-size:12px;}
table a { text-decoration:none; color:#FF6600}
table a:visted { color:#FF66CC; text-decoration:none}
.STYLE2 {color: #FF0000}
-->
</style> 
</head> 
<body topmargin="5" leftmargin="0"> 
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" > 
  <tr> 
    <td height="282" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> 
      <tr> 
        <td> 
          <table cellspacing="0" width="100%" height="207" style="border:1px  solid #DCEAF7;"> 
            <tr> 
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="images/arrow.gif" width="16" height="22" align="absmiddle" /> 淘宝客基本信息设置</strong></td> 
            </tr> 
            <tr> 
              <td width="100%" colspan="2" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0"> 
                <tr> 
                  <td valign="top"><form id="form1" name="form1" method="post" action="savetaobaokesetting.php"> 
                    <br /> 
                    <table width="720" border="0" align="center" cellpadding="0" cellspacing="0"> 
                      <tr> 
                        <td colspan="3"><span class="STYLE2">注意：设置多appkey自动切换，该系列appkey必须是由同一个淘宝用户名申请，否则可能无法获取佣金。</span></td> 
                        </tr> 
                    </table> 
                    <table width="720"  align="center" border=1 cellpadding=0 cellspacing=0style="border-collapse: collapse" bordercolor="#dddddd"> 
					 
					  <tr> 
                        <td width="129" height="30" align="right" class="bigtext">淘宝用户名：</td> 
                        <td width="597" height="30" class="bigtext">&nbsp;
                          <input name="usernick" type="text" id="usernick" value="<? echo MYUSERNICK ?>" size="40" class="btn3" style="width:300px" /> 
                          &nbsp;&nbsp;*</td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" bgcolor="#efefef" class="bigtext">主appKey：</td> 
                        <td height="30" bgcolor="#efefef" class="bigtext">&nbsp;
                          <input name="appKey" type="text" id="appKey" value="<? echo MYAPPKEY ?>" size="40"  class="btn3" style="width:300px" />                        
                          &nbsp;&nbsp;*</td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" bgcolor="#efefef" class="bigtext">主appSecret：</td> 
                        <td height="30" bgcolor="#efefef" class="bigtext">&nbsp;
                          <input name="appSecret" type="text" id="appSecret" value="<? echo MYAPPSECRET ?>" size="40"  class="btn3" style="width:300px" /> 
                        
                          &nbsp;&nbsp;*</td> 
                      </tr> 
					    <tr> 
                        <td height="30" align="right" class="bigtext">appKey2：</td> 
                        <td height="30" class="bigtext">&nbsp;
                          <input name="appKey2" type="text" id="appKey2" value="<? echo APPKEY2 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" class="bigtext">appSecret2：</td> 
                        <td height="30" class="bigtext">&nbsp;
                          <input name="appSecret2" type="text" id="appSecret2" value="<? echo APPSECRET2 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
					    <tr> 
                        <td height="30" align="right" bgcolor="#efefef" class="bigtext">appKey3：</td> 
                        <td height="30" bgcolor="#efefef" class="bigtext">&nbsp;
                          <input name="appKey4" type="text" id="appKey4" value="<? echo APPKEY3 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" bgcolor="#efefef" class="bigtext">appSecret3：</td> 
                        <td height="30" bgcolor="#efefef" class="bigtext">&nbsp;
                          <input name="appSecret3" type="text" id="appSecret3" value="<? echo APPSECRET3 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
					   <tr> 
                        <td height="30" align="right" class="bigtext">appKey4：</td> 
                        <td height="30" class="bigtext">&nbsp;
                          <input name="appKey6" type="text" id="appKey6" value="<? echo APPKEY4 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" class="bigtext">appSecret4：</td> 
                        <td height="30" class="bigtext">&nbsp;
                          <input name="appSecret4" type="text" id="appSecret4" value="<? echo APPSECRET4 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
					   <tr> 
                        <td height="30" align="right" bgcolor="#efefef" class="bigtext">appKey5：</td> 
                        <td height="30" bgcolor="#efefef" class="bigtext">&nbsp;
                          <input name="appKey8" type="text" id="appKey8" value="<? echo APPKEY5 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" bgcolor="#efefef" class="bigtext">appSecret5：</td> 
                        <td height="30" bgcolor="#efefef" class="bigtext">&nbsp;
                          <input name="appSecret5" type="text" id="appSecret5" value="<? echo APPSECRET5 ?>" size="40"  class="btn3" style="width:300px" />                          &nbsp;&nbsp;<span >可以为空</span></td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right" class="bigtext">阿里妈妈PID：</td> 
                        <td height="30" class="bigtext">&nbsp;
                          <input name="userpid" type="text" id="userpid" value="<? echo MYUSERPID ?>" size="40" class="btn3" style="width:300px"  /> 
 如: mm_<span class="large-yellow STYLE2">12345678</span>_0_0中的&quot;<span class="large-yellow STYLE2">12345678</span>&quot;<a href="http://soft.duoduo123.com/help/other/2010/0829/100.html" target="_blank">&nbsp;查看</a></td> 
                      </tr> 
                      <tr> 
                        <td height="30" align="right">&nbsp;</td> 
                        <td height="30" class="bigtext">&nbsp;
                          <input type="submit" name="Submit" value=" 保 存 设 置 " /> 
                          &nbsp;&nbsp;&nbsp;<a href="http://soft.duoduo123.com/help/inat/2010/0512/24.html" target="_blank">设置教程</a> </td> 
                      </tr> 
                    </table> 
                    <br /> 
                  </form> 
                  </td> 
                </tr> 
              </table></td> 
            </tr> 
          </table></td> 
        </tr> 
      
    </table></td> 
  </tr> 
</table> 
<script src="js/jquery.js" type="text/javascript"></script> 
<script src="js/facebox.js" type="text/javascript"></script> 
<link href="js/facebox.css" media="screen" rel="stylesheet" type="text/css" /> 
<script type="text/javascript"> 
    jQuery(document).ready(function($) {
      $(\'a[rel*=facebox]\').facebox() 
    })
</script> 
<div id="mydiv" style="display:none; font:12px; color:#666666;"> 
您好！只有购买了商业授权才能更改为自己的推广链接。未经官方授权可能会出现未知错误或自动还原PID设置。<br/><br/> 
&nbsp;&nbsp;&nbsp;<a href="http://soft.duoduo123.com/buy/2010/0609/84.html" target="_blank">查询授权</a> &nbsp;&nbsp;&nbsp;   <a href="http://pay.duoduo123.com" target="_blank">立即购买</a><br/> 
<br/> 
<span style="color:#FF0000; text-align:center">提示：通过自助购买授权 安装 设置仅需10分钟即可完成建站。方便、快捷、安全。<br/> 
请认准官方域名“duoduo123.com”</span> 
</div> 
</body> 
</html> 